package com.bobo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 菜单角色关联
 *
 * @author LILIBO
 * @since 2023-02-18
 */
@Tag(name = "菜单角色关联")
@Data
@TableName("sys_power")
public class SysPower implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 权限ID
     */
    @Schema(name = "权限ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 角色ID
     */
    @Schema(name = "角色ID")
    private Long roleId;

    /**
     * 菜单ID
     */
    @Schema(name = "菜单ID")
    private Long menuId;

    /**
     * 状态 0:启用;1:禁用
     */
    @Schema(name = "状态 0:启用;1:禁用")
    private Integer status;

}
